Skip to main content

Update a supplier for the given organization.

PUT 

/partner/v1.0/organizations/:organizationId/suppliers/:supplierId

Update a supplier for the given organization.

Request​

Path Parameters

    organizationId stringrequired

    The ID of the organization in the Carbon Trail platform.

    supplierId stringrequired

    The ID of the supplier to update.

Body

The supplier values to update.

    id stringnullable

    The unique identifier of the supplier in CarbonTrail.

    name stringnullable

    The name of the supplier.

    primaryEmail stringnullable

    The primary contact email address for the supplier.

    location

    object

    Represents a geographical location where a manufacturing process or material sourcing takes place.

    id stringnullable

    The unique identifier of the location.

    city stringnullable

    The name of the city.

    stateName stringnullable

    The name of the state where the location is situated.

    country stringrequired

    Possible values: non-empty

    The ISO 3166-1 alpha-2 country code.

    countryName stringnullable

    The full name of the country.

    continent stringnullable

    The name of the continent.

    latitude doublenullable

    The latitude coordinate of the location.

    longitude doublenullable

    The longitude coordinate of the location.

    aliases

    object[]

    nullable

    The aliases associated with the supplier, including alternative identifiers.

  • Array [

  • id stringnullable

    The unique identifier of the alias definition in CarbonTrail.

    name stringnullable

    The name of the alias (e.g., "Supplier ID", "Facility ID").

    value stringnullable

    The identifier value associated with the entity for this alias.

  • ]

  • customFieldValues

    object[]

    nullable

    The values of custom fields associated with the supplier.

  • Array [

  • oneOf

    Represents a custom field value.

    type

    string

    required

    Possible values: [Text, Select, Multi-Select]

    value stringnullable

    The value of the text custom field.

    customFieldId stringrequired

    Possible values: non-empty

    The unique identifier of the custom field this value is associated with.

  • ]

  • externalIdentities

    object[]

    nullable

    The identifiers of the supplier in source systems, used for idempotency to prevent duplicate imports.

  • Array [

  • name stringnullable

    The name of the system (e.g., "SAP", "Workday", "Snowflake") where this ID is from.

    value stringnullable

    The unique identifier value from the system.

  • ]

Responses​

No Content

Loading...